package xyz.xmh.pojo.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * token响应实体
 *
 * @author xuMingHai
 */
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class TokenResponse {

    private String defaultSboxDriveId;
    private String role;
    private String deviceId;
    private String userName;
    private Boolean needLink;
    private Date expireTime;
    private Boolean pinSetup;
    private Boolean needRpVerify;
    private String avatar;
    /**
     * token类型
     */
    private String tokenType;

    /**
     * token令牌
     */
    private String accessToken;
    private String defaultDriveId;
    private String domainId;
    private String refreshToken;
    private Boolean isFirstLogin;
    private String userId;
    private String nickName;
    private List<String> existLink;
    private String state;
    private Integer expiresIn;
    private String status;

}
